package com.qf.service;

import com.qf.entity.TlCar;
import com.qf.entity.TlPerson;
import com.qf.utils.ResultMsg;
import com.qf.vo.TicketVo;
import com.qf.vo.TicketsVo;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface TicketService {
    //根据id查询用户订单
    ResultMsg findAll(HttpServletRequest request);

    //后台查询所有订单
    ResultMsg findAll(int page,int limit);

    ResultMsg findAll();


    ResultMsg submit(Map<String,Integer> map);

    //删除订单
    ResultMsg delete(String ticketId);

    ResultMsg create(TicketsVo ticketsVo,HttpServletRequest request);

    ResultMsg refund(String ticketId, Integer ticketPrice);
}
